# This dockerfile uses the centos image

FROM centos:centos7

MAINTAINER zwpaper <zw.paper@gmail.com>

# update system
RUN yum update -y

# install python-tools and pip
RUN yum -y install python-setuptools && easy_install pip

# install shadowsocks
RUN pip install django

# run django
RUN \
  django-admin startproject mysite && \
  cd mysite && \
  python manage.py migrate 

EXPOSE 80

CMD ["python", "mysite/manager.py", "runserver", "0.0.0.0:80"] 

